<?php
class Upload extends CI_Controller{
    public function __construct() {
        parent::__construct();
        $this->load->helper("url");
    }
    public function index(){
        $this->load->model("Mupload");
        if($this->input->post("ok")){
            $this->Mupload->do_upload();
        }
        $data['images']= $this->Mupload->get_images();
        $this->load->view("vupload",$data);
    }
}
?>
